namespace :bilibiliranking do
  desc "bilibili ranking example ed"
  task :ed => :environment do
    require 'lib/tasks/vegas_video_maker.rb'
    require 'lib/tasks/bili_ranking_maker.rb'
    include VegasVideoMaker
    BRM.create({:path => "#{BILI_PRO_PATH}#{ENV['pa']}\\"}) do |vvm|
      vvm.ed_bgm do |length|
        vvm.ut[:pic_list] = VVMTime.nl length - 16 if length > 16 #这句计算出每张排名图片停留的时间
        vvm.title(5, false, 5).list2.ed
      end
    end
  end
end